<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.tag.com/website" prefix="s"%>

<meta http-equiv="X-UA-Compatible" content="edge" />
<meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />

<script>var ctx="${ctx}";</script>
<script>var islogin=${islogin};</script>
<script>var isuserauth=${isuserauth};</script>

<script>

    var fileserver = "${fileserver}";
    function getRandomFileserver() {
        var defaultfileserver = fileserver;
        var cdnserver = "${cdneserver}";
        if (cdnserver) {
            var fs = cdnserver.split(";");
            var tempFileserver = fs[Math.floor(Math.random() * 10000000.0) % fs.length];
            if (tempFileserver && tempFileserver.length > 0) {
                return tempFileserver;
            }
        }
        return defaultfileserver;
    }

</script>

<script src="${webctx }/js/jquery.js"></script>
<script src="${webctx }/js/jquery.cookie.js"></script>
<script src="${ctx }/util/js/json2.js"></script>
<script src="${webctx }/js/common.js"></script>


<script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?367bcb63f6479e358acd730b1341c1e3";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    $(document).ready(function() {
        $("#wsc-username").val($.cookie("userName"));
        $("#wsc-password").val($.cookie("passWord"));
    });
    function saveUserInfo() {
        var userName = $("#wsc-username").val();
        var passWord = $("#wsc-password").val();
        $.cookie("userName", userName, { path: '/', expires: 30, domain: '${ctx}'});
        $.cookie("passWord", passWord, { path: '/', expires: 30, domain: '${ctx}'});
    }
</script>

<link href="${webctx }/css/common.css?v=20170705" rel="stylesheet" type="text/css" />
<link href="${webctx }/css/base.css" rel="stylesheet" type="text/css" />
<link href="${ctx }/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
